<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>查看信息</title>
    <link rel="stylesheet" href="/layuimoduls/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/layuimoduls/css/public.css" media="all">
</head>
<style>
    body{
        background-color: #F2F2F2;
    }
</style>
<body>
<div class="layui-row layui-col-space15">
    <div class="layui-col-md6">
        <div class="layui-card">
            <div class="layui-card-header">我的信息</div>
            <table class="layui-table">
                <colgroup>
                    <col width="100">
                    <col>
                </colgroup>
                <tbody>
                <tr>
                    <td>学生id</td>
                    <td>
                        <span th:text="${stuinfo.studentid}"></span>
                    </td>
                </tr>
                <tr>
                    <td>用户名</td>
                    <td>
                        <span th:text="${session.username}"></span>
                    </td>
                </tr>
                <tr>
                    <td>真实姓名</td>
                    <td>
                        <span th:text="${stuinfo.realname}"></span>
                    </td>
                </tr>
                <tr>
                    <td>注册时间</td>
                    <td> <span th:text="${stuinfo.regtime}"></span></td>
                </tr>
                <tr>
                    <td>手机号</td>
                    <td><span th:text="${stuinfo.serialnumber}"></span></td>
                </tr>
                <tr>
                    <td>邮箱</td>
                    <td>
                        <span th:text="${stuinfo.mailnumber}"></span>
                    </td>
                </tr>
                <tr>
                    <td>学院</td>
                    <td>
                        <span th:text="${stuinfo.college}"></span>
                    </td>
                </tr>


                </tbody>
            </table>
        </div>
    </div>
    <div class="layui-col-md6">
        <div class="layui-card" >
            <div class="layui-card-header">我的课程</div>
            <div class="layui-card-body">
                <table class="layui-table">
                    <colgroup>
                        <col width="100">
                        <col>
                    </colgroup>
                    <thead>
                    <tr>
                        <th>科目名称</th>
                        <th>任课教师</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="subinfo1:${subinfo}">
                        <td  th:text="${subinfo1.subjectname}"></td>
                        <td  th:text="${subinfo1.realname}"></td>
                    </tr>
                    </tbody>
                </table>

            </div>
        </div>
    </div>
</div>
</body>
</html>